package com.southminority.ethnic.controller.admin.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;

/**
 * 后台管理分页请求VO
 * 
 * @author SouthMinority
 */
@Data
@Schema(description = "后台管理分页请求")
public class AdminPageReqVo {

    @Schema(description = "当前页数", required = true, example = "1")
    @NotNull(message = "页数不能为空")
    @Min(value = 1, message = "页数最小为1")
    private Integer pageNum;

    @Schema(description = "页面大小", required = true, example = "10")
    @NotNull(message = "页面大小不能为空")
    @Min(value = 1, message = "页面大小最小为1")
    private Integer pageSize;

    @Schema(description = "查询关键词", example = "关键词")
    private String keyword;
} 